#ifndef GETORDER_H
#define GETORDER_H

#include <QDialog>
#include <QSqlDatabase>
#include <QMessageBox>
#include <QSqlQuery>
#include <QSqlTableModel>

namespace Ui {
class getorder;
}

class getorder : public QDialog
{
    Q_OBJECT

public:
    explicit getorder(QSqlDatabase* db,QWidget *parent = nullptr);
    ~getorder();

private slots:
    void on_btnClear_clicked();

    void on_btnAppend_clicked();

    void on_btnGetOrder_clicked();

private:
    Ui::getorder *ui;

    QSqlDatabase m_db;

    QSqlTableModel* payModel;
    QSqlTableModel* m_menuModel;
    QSqlTableModel* m_seatModel;
};

#endif // GETORDER_H
